Skip to main content

sha1Digest

Type

function

Summary

Computes a SHA-1 cryptographic message digest.

Syntax

the sha1Digest of <message>
sha1Digest(<message>)

Description

Compute a message digest of message using the SHA-1 cryptographic hash function.

warning

Serious flaws have been found in the SHA-1 hash algorithm that make it unsuitable to use for security-critical purposes. Unless you need backwards compatibility with existing systems, use one of the other algorithms available with the messageDigest function

Parameters

NameTypeDescription

message

data

A binary data string.

Examples

get the sha1Digest of "LiveCode"
put textEncode("Message to verify", "UTF-8") into tMessage
get sha1Digest(tMessage)

function: md5Digest, messageDigest

glossary: byte, function

Compatibility and Support

Introduced

LiveCode 4.6

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?